import type { Dict } from '/@/model/cn/core/dict/eo/Dict'
import type { DictValue } from '/@/model/cn/core/dict/eo/DictValue'
import type { CoreTree } from '/@/tool/CoreTree'

/**
 * 数据字典和数据字典值信息 展示类
 */
export interface DictAndValueVO {

  /**
   * 数据字典
   */
  dict?: Dict | null

  /**
   * 数据字典值
   */
  dictValue?: Array<DictValue> | null

  /**
   * 数据字典值 >>> 树
   */
  dictValueTreeData?: CoreTree<any> | null

}

export function toDictAndValueVO(): DictAndValueVO {
  return {
    dict: null,
    dictValue: null,
    dictValueTreeData: null,
  } as DictAndValueVO
}
